package com.example.shiro_springboot.service.impl;

import com.example.shiro_springboot.entity.User;
import com.example.shiro_springboot.mapper.UserMapper;
import com.example.shiro_springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserInfoByUname(String uname) {
        return userMapper.getUserInfoByUname(uname);
    }

    @Override
    public List<String> selPermissionInfoByUname(String uname) {
        return userMapper.selPermissionInfoByUname(uname);
    }
}
